home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.cra < prev    next >
Text File  |  1996-07-05  |  5KB  |  153 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   9/19/91
  31. *
  32. *
  33. * File Description:
  34. *    system dependent header
  35. *    Cray UNICOS version 7.0
  36. *
  37. * Modifications:
  38. * --------------------------------------------------------------------------
  39. * Date     Name        Description of modification
  40. * -------  ----------  -----------------------------------------------------
  41. *
  42. * ==========================================================================
  43. */
  44. #ifndef _NCBILCL_
  45. #define _NCBILCL_
  46.  
  47. /* PLATFORM DEFINITION FOR Cray Y-MP UNDER Cray UNICOS */
  48.  
  49. #define COMP_CRAY
  50. #define OS_UNIX
  51. #define OS_UNIX_UNICOS
  52. #define PROC_YMP
  53. #define WIN_DUMB
  54.  
  55. /*----------------------------------------------------------------------*/
  56. /*      Desired or available feature list                               */
  57. /*----------------------------------------------------------------------*/
  58.  
  59. /*----------------------------------------------------------------------*/
  60. /*      #includes                                                       */
  61. /*----------------------------------------------------------------------*/
  62. #include <sys/types.h>
  63. #include <limits.h>
  64. #include <sys/stat.h>
  65. #include <stddef.h>
  66. #include <stdio.h>
  67. #include <ctype.h>
  68. #include <string.h>
  69. #include <malloc.h>
  70. #include <memory.h>
  71. #include <stdlib.h>
  72. #include <math.h>
  73. #include <errno.h>
  74. #include <float.h>
  75.  
  76. /*----------------------------------------------------------------------*/
  77. /*      Missing ANSI-isms                                               */
  78. /*----------------------------------------------------------------------*/
  79. #define const    /* "const" keyword not accepted */
  80. #define noalias    /* "noalias" keyword not accepted */
  81. #define volatile    /* "volatile" keyword not accepted */
  82. #ifndef FILENAME_MAX
  83. #define FILENAME_MAX 1024
  84. #endif
  85.  
  86. /*----------------------------------------------------------------------*/
  87. /*      Aliased Logicals, Datatypes                                     */
  88. /*----------------------------------------------------------------------*/
  89. typedef int        Nlm_Int4, *Nlm_Int4Ptr;
  90. typedef unsigned int    Nlm_Uint4, *Nlm_Uint4Ptr;
  91. typedef long    Nlm_Int8, *Nlm_Int8Ptr;
  92. typedef unsigned long    Nlm_Uint8, *Nlm_Uint8Ptr;
  93.  
  94. #define Int4        Nlm_Int4
  95. #define Int4Ptr        Nlm_Int4Ptr
  96. #define Uint4        Nlm_Uint4
  97. #define Uint4Ptr    Nlm_Uint4Ptr
  98. #define Int8        Nlm_Int8
  99. #define Int8Ptr        Nlm_Int8Ptr
  100. #define Uint8        Nlm_Uint8
  101. #define Uint8Ptr    Nlm_Uint8Ptr
  102.  
  103. /*----------------------------------------------------------------------*/
  104. /*      Misc Macros                                                     */
  105. /*----------------------------------------------------------------------*/
  106. #define PROTO(x)    x    /* Function prototypes faked in */
  107. #define VPROTO(x)    x    /* Prototype for variable arg list */
  108. #define DIRDELIMCHR    '/'
  109. #define DIRDELIMSTR    "/"
  110. #define CWDSTR    "."
  111.  
  112. #define KBYTE    (1024)
  113. #define MBYTE    (1048576)
  114.  
  115. #define IS_BIG_ENDIAN
  116. #define TEMPNAM_AVAIL
  117.  
  118. /*----------------------------------------------------------------------*/
  119. /*      For importing MS_DOS code                                       */
  120. /*----------------------------------------------------------------------*/
  121. #define near
  122. #define far
  123. #define huge
  124. #define cdecl
  125. #define pascal
  126. #define _pascal
  127. #define _near
  128. #define _far
  129. #define _huge
  130. #define _cdecl
  131.  
  132. /*----------------------------------------------------------------------*/
  133. /*      Macros for Floating Point                                       */
  134. /*----------------------------------------------------------------------*/
  135. #define EXP2(x) exp2(x)
  136. #define LOG2(x) log2(x)
  137. #define EXP10(x) exp10(x)
  138. #define LOG10(x) log10(x)
  139.  
  140. /*----------------------------------------------------------------------*/
  141. /*      Macros Defining Limits                                          */
  142. /*----------------------------------------------------------------------*/
  143. #define INT4_MIN    INT_MIN
  144. #define INT4_MAX    INT_MAX
  145. #define UINT4_MAX    UINT_MAX
  146. #define INT8_MIN    LONG_MIN
  147. #define INT8_MAX    LONG_MAX
  148. #define UINT8_MAX    ULONG_MAX
  149.  
  150. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  151.  
  152. #endif
  153.